function User() {}

const u = new User();
console.log(u.hasOwnProperty === Object.prototype.hasOwnProperty);

const arr = [];
console.log(Object.getPrototypeOf(arr) === Array.prototype);
console.log(Object.getPrototypeOf(arr) === arr.__proto__);

// 空原型对象
// obj的隐式隐式原型指向null
const obj = Object.create(null);
console.log(obj);

const obj1 = { a: 1, b: 2 };
// 第二种隐式原型指向null
Object.setPrototypeOf(obj1, null);
console.log(obj1);

const arr1 = Object.create(Array.prototype);
console.log(arr1);
